import * as Cesium from 'cesium';
import RadarMaterialProperty from './material/RadarMaterialProperty';
export default class RadartLight {
  constructor(viewer) {
    this.radarMaterialProperty = new RadarMaterialProperty();
    // 使用entities 创建矩形
    this.entity = viewer.entities.add({
      name: 'Rectangle',
      // position: Cesium.Cartesian3.fromDegrees(113.3191, 23.109, 2000),
      rectangle: {
        coordinates: Cesium.Rectangle.fromDegrees(
          113.3291,
          23.099,
          113.3391,
          23.109
        ),
        material: this.radarMaterialProperty, // 材质颜色
        // material: Cesium.Color.WHITE.withAlpha(0.5), // 材质颜色
        // outline: true,
        // outlineColor: Cesium.Color.BLACK,
        // outlineWidth: 2,
      },
    });
  }
}
